package com.question.business.auth.service;

import com.question.business.auth.model.ao.LoginAO;
import com.question.business.auth.model.dto.CurrentUserDTO;
import com.question.business.auth.model.vo.LoginVO;

/**
 * 认证服务
 *
 * @author star
 * @since 2022/8/12
 */
public interface IAuthService {

    /**
     * 账号密码登陆认证
     *
     * @param ao 登陆数据
     * @return LoginVo
     */
    LoginVO userLogin(LoginAO ao);

    /**
     * 退出登陆认证
     */
    void loginOut();

    /**
     * 获取当前用户信息
     *
     * @return UserDetailDTO
     */
    CurrentUserDTO currentUser();

}
